package org.news.web.domain.bo;

import org.news.web.domain.Notifications;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 通知功能业务对象 notifications
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@AutoMapper(target = Notifications.class, reverseConvertGenerate = false)
public class NotificationsBo{

    /**
     * 通知ID
     */
    @NotNull(message = "通知ID不能为空", groups = { EditGroup.class })
    private Long notificationId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


    private String username;

    /**
     * 通知类型，系统通知或消息通知

     */
    @NotNull(message = "通知类型，系统通知或消息通知 不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long notificationType;

    /**
     * 通知内容
     */
    @NotBlank(message = "通知内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 是否已读
     */
    private Integer isRead;

    /**
     * 记录通知时间
     */
    private Date creationTime;


}
